import 'package:encrypt/encrypt.dart';
class EncryptTool{
  //for AES Algorithms_ static Encrypted? _encrypted_;


  static  String encryptAES_(plainText){
    final key = Key.fromUtf8('wichingwichingas');
    final iv = IV.fromUtf8("wichingwichingas");

    final encrypter = Encrypter(AES(key, mode: AESMode.cbc));

    final encrypted = encrypter.encrypt(plainText, iv: iv);
    // final decrypted = encrypter.decrypt(encrypted, iv: iv);

    return encrypted.base64;
  }

}